/// CreateTime 2020/5/13 18:16
/// CreateUser chen 
/// ProjectName flutter_elf
import 'package:flutter_elf/config/component_index.dart';

class DidPopNextPage extends StatefulWidget{
  @override
  State<StatefulWidget> createState() {
    // TODO: implement createState
    return DidPopNextPageState();
  }
}

class DidPopNextPageState extends State<DidPopNextPage> with RouteAware {
  @override
  void didChangeDependencies() {
    super.didChangeDependencies();
    routeObserver2.subscribe(this, ModalRoute.of(context));
  }

  @override
  void dispose() {
    routeObserver2.unsubscribe(this);
    super.dispose();
  }

  /// RouteAware
  @override
  void didPush() {
    globalPrint(this.runtimeType.toString() + ':didPush');
  }

  @override
  void deactivate() {
    // TODO: implement deactivate
    super.deactivate();
  }

  @override
  void didPopNext() {
    // Covering route was popped off the navigator.
    globalPrint(this.runtimeType.toString() + ':didPopNext');
  }

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Material(child: Text('=========='),);
  }
}